import { Map } from "immutable";
import * as actionTypes from "./constance";

const defaultState = Map({
  myEvent: [],
  myUserInfo: [],
});

const reducerE = (state = defaultState, action) => {
  switch (action.type) {
    case actionTypes.MYEVENT:
      return state.set("myEvent", action.myEvents);
    case actionTypes.MYUSERDETAILINFO:
      return state.set("myUserInfo", action.myUserDetailInfo);
    default:
      return state;
  }
};

export default reducerE;
